import 'package:flutter/material.dart';
import 'package:test_flutter/utils/factory/Fit.dart';


class MyOrderPage extends StatefulWidget {
  final String title;
  MyOrderPage(this.title);
  @override
  MyOrderState createState() => new MyOrderState();
}

class MyOrderState extends State<MyOrderPage> {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      backgroundColor: Colors.white,
      appBar: PreferredSize(child: Container(
        decoration: BoxDecoration(
            gradient:  LinearGradient(colors: [
              Color(0xFF3C8CE7),
              Color(0xFF00EAFF),
            ])),
        child:  new AppBar(
          primary: true,
          title: new Text(widget.title),
          backgroundColor: Colors.transparent,
        ),
      ), preferredSize: new Size(Fit.scaleX(1080), kToolbarHeight)),
      body: Container(child: Text(widget.title),),
    );
  }

}